﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;

namespace ProjectDan.CRM.Views
{
    public class ListUploadedFilesPresenter : Presenter<IListUploadedFilesView>
    {
        private ICRMController _controller;
        
        public ListUploadedFilesPresenter([CreateNew] ICRMController controller)
        {
            _controller = controller;
        }

        public override void OnViewLoaded()
        {
            // TODO: Implement code that will be executed every time the view loads
        }

        public override void OnViewInitialized()
        {
            var allFiles = _controller.GetAllUploadedFiles();

            View.Show(allFiles);
        }
    }
}




